package tech.nuoson.wisdom.domain.speechtrans;

import lombok.Getter;

public class SpeechTransResultMessage extends AbstractSpeechTransMessage<SpeechTransResultMessage.Result> {

    // #region -- ** 构造方法 **
    /**
     * 
     * @param result
     */
    public SpeechTransResultMessage(Result result) {
        super(AbstractSpeechTransMessage.MessageType.TRANS_RESULT, result);
    }

    /**
     * 
     * @param text
     * @return
     */
    public static SpeechTransResultMessage of(String text) {
        return new SpeechTransResultMessage(new Result(text));
    }

    // #endregion

    @Getter
    public static class Result {
        private String text;

        public Result(String text) {
            this.text = text;
        }
    }
}
